from PyQt5.QtWidgets import QToolBar, QAction

class NavigationBar(QToolBar):
    def __init__(self):
        super().__init__()
        self.setMovable(False)
        self._init_actions()

    def _init_actions(self):
        # 添加平台切换菜单（与截图布局一致）
        platform_action = QAction("平台切换", self)
        self.addAction(platform_action)
        
        # 添加其他功能按钮
        actions = [
            ('home', '首页'),
            ('download', '批量下载'),
            ('convert', '格式工厂')
        ]
        
        for name, text in actions:
            self.addAction(QAction(text, self))